runtime.mspan.elemsize (field)
56 uses
runtime (current package)
arena.go#L673: gcmarknewobject(span, span.base(), span.elemsize)
arena.go#L678: racemalloc(unsafe.Pointer(span.base()), span.elemsize)
arena.go#L683: msanmalloc(unsafe.Pointer(span.base()), span.elemsize)
arena.go#L688: rzSize := computeRZlog(span.elemsize)
arena.go#L689: span.elemsize -= rzSize
arena.go#L692: asanpoison(unsafe.Pointer(span.limit), span.npages*pageSize-span.elemsize)
arena.go#L693: asanunpoison(unsafe.Pointer(span.base()), span.elemsize)
arena.go#L811: racefree(unsafe.Pointer(s.base()), s.elemsize)
arena.go#L849: racefree(unsafe.Pointer(s.base()), s.elemsize)
arena.go#L852: msanfree(unsafe.Pointer(s.base()), s.elemsize)
arena.go#L855: asanpoison(unsafe.Pointer(s.base()), s.elemsize)
arena.go#L995: memclrNoHeapPointers(unsafe.Pointer(s.base()), s.elemsize)
cgocall.go#L585: n := span.elemsize
heapdump.go#L485: size := s.elemsize
malloc.go#L904: return gclinkptr(result*s.elemsize + s.base())
malloc.go#L940: v = gclinkptr(freeIndex*s.elemsize + s.base())
malloc.go#L1130: size = span.elemsize
mbitmap.go#L215: if doubleCheck && q != n/s.elemsize {
mbitmap.go#L216: println(n, "/", s.elemsize, "should be", n/s.elemsize, "but got", q)
mbitmap.go#L370: base = s.base() + objIndex*s.elemsize
mbitmap.go#L737: isPtrs := goarch.PtrSize == 8 && s.elemsize == goarch.PtrSize
mbitmap.go#L1454: n := s.elemsize
mcache.go#L174: bytesAllocated := slotsUsed * int64(s.elemsize)
mcache.go#L211: usedBytes := uintptr(s.allocCount) * s.elemsize
mcache.go#L279: gcController.totalAlloc.Add(slotsUsed * int64(s.elemsize))
mcache.go#L287: dHeapLive -= int64(uintptr(s.nelems)-uintptr(s.allocCount)) * int64(s.elemsize)
mgcmark.go#L385: p := s.base() + uintptr(spf.special.offset)/s.elemsize*s.elemsize
mgcmark.go#L1269: n := s.elemsize
mgcmark.go#L1288: for oblet := b + maxObletBytes; oblet < s.base()+s.elemsize; oblet += maxObletBytes {
mgcmark.go#L1298: n = s.base() + s.elemsize - b
mgcmark.go#L1434: obj := span.base() + idx*span.elemsize
mgcmark.go#L1494: gcw.bytesMarked += uint64(span.elemsize)
mgcmark.go#L1519: print(" s.base()=", hex(s.base()), " s.limit=", hex(s.limit), " s.spanclass=", s.spanclass, " s.elemsize=", s.elemsize, " s.state=")
mgcmark.go#L1527: size := s.elemsize
mgcsweep.go#L530: size := s.elemsize
mgcsweep.go#L607: x := s.base() + i*s.elemsize
mgcsweep.go#L663: getg().m.p.ptr().trace.reclaimed += uintptr(nfreed) * s.elemsize
mgcsweep.go#L749: gcController.totalFree.Add(int64(nfreed) * int64(s.elemsize))
mgcsweep.go#L829: print("runtime: marked free object in span ", s, ", elemsize=", s.elemsize, " freeindex=", s.freeindex, " (bad use of unsafe.Pointer? try -d=checkptr)\n")
mgcsweep.go#L833: addr := s.base() + i*s.elemsize
mgcsweep.go#L852: length := s.elemsize
mheap.go#L491: elemsize uintptr // computed from sizeclass or from npages
mheap.go#L512: size = s.elemsize
mheap.go#L1399: s.elemsize = nbytes
mheap.go#L1403: s.elemsize = uintptr(class_to_size[sizeclass])
mheap.go#L1404: s.nelems = nbytes / s.elemsize
mheap.go#L1686: span.elemsize = 0
mwbbuf.go#L259: gcw.bytesMarked += uint64(span.elemsize)
pinner.go#L180: offset := objIndex * span.elemsize
pinner.go#L194: offset := objIndex * span.elemsize
pinner.go#L367: offset := objIndex * span.elemsize
stack.go#L210: s.elemsize = fixedStack << order
stack.go#L211: for i := uintptr(0); i < _StackCacheSize; i += s.elemsize {
stack.go#L413: s.elemsize = uintptr(n)
|
The pages are generated with Golds v0.6.7. (GOOS=linux GOARCH=amd64)
Golds is a Go 101 project developed by Tapir Liu.
PR and bug reports are welcome and can be submitted to the issue list.
Please follow @Go100and1 (reachable from the left QR code) to get the latest news of Golds. |